package cn.stylefeng.guns.modular.business.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * @author pzp
 * @since 2019-07-25
 * 实名认证
 * </p>
 *
 */
@Data
@TableName("c_certification")
public class Certification implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "certification_id", type = IdType.AUTO)
    private Integer certificationId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 真实姓名
     */
    @TableField("name")
    private String name;

    /**
     * 身份证号
     */
    @TableField("id_card")
    private String idCard;

    /**
     * 银行卡号
     */
    @TableField("card_no")
    private String cardNo;

    /**
     * 手机号
     */
    @TableField("phone")
    private String phone;

    /**
     * 正面照
     */
    @TableField("front_side")
    private String frontSide;

    /**
     * 反面照
     */
    @TableField("back_side")
    private String backSide;

    /**
     * 手持身份证
     */
    @TableField("hand_side")
    private String handSide;

    /**
     * 审批状态：0：审批中，1：通过，2：拒绝
     */
    @TableField("status")
    private Integer status;

    /**
     * 认证方式：0：银行卡号，1：支付宝，2：身份照
     */
    private Integer mode;

    /**
     * 审批意见
     */
    @TableField("description")
    private String description;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableField("delete_flag")
    private Integer deleteFlag;


    @Override
    public String toString() {
        return "Certification{" +
        "certificationId=" + certificationId +
        ", userId=" + userId +
        ", name=" + name +
        ", idCard=" + idCard +
        ", cardNo=" + cardNo +
        ", phone=" + phone +
        ", frontSide=" + frontSide +
        ", backSide=" + backSide +
        ", handSide=" + handSide +
        ", status=" + status +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", deleteFlag=" + deleteFlag +
        "}";
    }
}
